package org.jinyan.db.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface ISuperMapDao {

	public boolean add(String tableName, Map<String, String> map)
			throws SQLException;
	public boolean add(String sql)
			throws SQLException;

	public boolean delete(String tableName, Map<String, String> map)
			throws SQLException;
	
	public boolean delete(String sql)
			throws SQLException;

	public boolean update(String tableName, Map<String, String> map,
			String pkAndValue) throws SQLException;
	public boolean update(String sql) throws SQLException;

	public Object select(String tableName, Map<String, String> map)
			throws SQLException;
	public Object select(String sql)
			throws SQLException;

	public List<Object> listObject(String tableName, Map<String, String> map)
			throws SQLException;
	
	public List<Object> listObject(String sql)
			throws SQLException;

}
